package a.g;

import a.c.d;
import a.c.j;
import a.c.m;
import a.c.w;
import a.f.cb;
import a.f.d.a.fc;
import a.f.d.a.hc;
import a.f.d.a.ob;
import a.f.d.a.oc;
import a.f.d.a.uc;
import a.f.d.e;
import a.f.d.n;
import a.f.fd;
import a.f.qc;
import a.f.vc;
import a.h.cc;
import a.h.dc;
import a.h.ec;
import a.h.jc;
import a.h.kc;
import a.j.g;
import a.j.ig;
import a.j.ke;
import a.j.tb;
import a.f.d.n;
import a.j.tb;
import a.j.g;
import a.c.d;
import a.f.d.e;
import a.f.vc;
import a.c.m;
import a.c.j;
import a.g.h;
import a.f.qc;
import a.f.cb;

public class t
  extends h
{
  private static final String q = "INCREMENTAL_HIERARCHIC";
  private static final String r = "GENERAL";
  private static final String s = "INTERACTION";
  private static final String t = "SELECTED_ELEMENTS_INCREMENTALLY";
  private static final String u = "USE_DRAWING_AS_SKETCH";
  private static final String v = "ORIENTATION";
  private static final String w = "RIGHT_TO_LEFT";
  private static final String x = "BOTTOM_TO_TOP";
  private static final String y = "LEFT_TO_RIGHT";
  private static final String z = "TOP_TO_BOTTOM";
  private static final String A = "LAYOUT_COMPONENTS_SEPARATELY";
  private static final String B = "SYMMETRIC_PLACEMENT";
  private static final String C = "MINIMUM_DISTANCES";
  private static final String D = "NODE_TO_NODE_DISTANCE";
  private static final String E = "NODE_TO_EDGE_DISTANCE";
  private static final String F = "EDGE_TO_EDGE_DISTANCE";
  private static final String G = "MINIMUM_LAYER_DISTANCE";
  private static final String H = "MAXIMAL_DURATION";
  private static final String I = "EDGE_SETTINGS";
  private static final String J = "EDGE_ROUTING";
  private static final String K = "EDGE_ROUTING_ORTHOGONAL";
  private static final String L = "EDGE_ROUTING_OCTILINEAR";
  private static final String M = "EDGE_ROUTING_POLYLINE";
  private static final String N = "BACKLOOP_ROUTING";
  private static final String O = "MINIMUM_FIRST_SEGMENT_LENGTH";
  private static final String P = "MINIMUM_LAST_SEGMENT_LENGTH";
  private static final String Q = "MINIMUM_EDGE_LENGTH";
  private static final String R = "MINIMUM_EDGE_DISTANCE";
  private static final String S = "MINIMUM_SLOPE";
  private static final String T = "PC_OPTIMIZATION_ENABLED";
  private static final String U = "AUTOMATIC_EDGE_GROUPING_ENABLED";
  private static final String V = "EDGE_STRAIGHTENING_OPTIMIZATION_ENABLED";
  private static final String W = "RANKS";
  private static final String X = "RANKING_POLICY";
  private static final String Y = "HIERARCHICAL_OPTIMAL";
  private static final String Z = "HIERARCHICAL_TIGHT_TREE_HEURISTIC";
  private static final String ab = "HIERARCHICAL_TOPMOST";
  private static final String bb = "BFS_LAYERS";
  private static final String cb = "FROM_SKETCH";
  private static final String db = "LAYER_ALIGNMENT";
  private static final String eb = "TOP";
  private static final String fb = "CENTER";
  private static final String gb = "BOTTOM";
  private static final String hb = "FROM_SKETCH_PROPERTIES";
  private static final String ib = "SCALE";
  private static final String jb = "HALO";
  private static final String kb = "MINIMUM_SIZE";
  private static final String lb = "MAXIMUM_SIZE";
  private static final String mb = "COMPONENT_ARRANGEMENT_POLICY";
  private static final String nb = "POLICY_TOPMOST";
  private static final String ob = "POLICY_COMPACT";
  private static final String pb = "LABELING";
  private static final String qb = "NODE_PROPERTIES";
  private static final String rb = "CONSIDER_NODE_LABELS";
  private static final String sb = "EDGE_PROPERTIES";
  private static final String tb = "EDGE_LABELING";
  private static final String ub = "EDGE_LABELING_NONE";
  private static final String vb = "EDGE_LABELING_HIERARCHIC";
  private static final String wb = "EDGE_LABELING_GENERIC";
  private static final String xb = "EDGE_LABEL_MODEL";
  private static final String zb = "EDGE_LABEL_MODEL_FREE";
  private static final String Ab = "EDGE_LABEL_MODEL_BEST";
  private static final String Bb = "EDGE_LABEL_MODEL_AS_IS";
  private static final String Cb = "EDGE_LABEL_MODEL_SIDE_SLIDER";
  private static final String Db = "EDGE_LABEL_MODEL_CENTER_SLIDER";
  private static final String Eb = "GROUPING";
  private static final String Fb = "SWIMLANES";
  private static final String Gb = "TREAT_ROOT_GROUPS_AS_SWIMLANES";
  private static final String Hb = "USE_ORDER_FROM_SKETCH";
  private static final String Ib = "SWIMLANE_SPACING";
  private static final String Jb = "GROUP_LAYERING_STRATEGY";
  private static final String Kb = "GLOBAL_LAYERING";
  private static final String Lb = "RECURSIVE_LAYERING";
  private static final String Mb = "GROUP_ALIGNMENT";
  private static final String Nb = "GROUP_ALIGN_TOP";
  private static final String Ob = "GROUP_ALIGN_CENTER";
  private static final String Pb = "GROUP_ALIGN_BOTTOM";
  private static final String Qb = "GROUP_ENABLE_COMPACTION";
  private static final String Rb = "GROUP_HORIZONTAL_COMPACTION";
  private static final String Sb = "GROUP_HORIZONTAL_COMPACTION_NONE";
  private static final String Tb = "GROUP_HORIZONTAL_COMPACTION_MAX";
  private static final Object[] Ub = { "EDGE_ROUTING_ORTHOGONAL", "EDGE_ROUTING_POLYLINE", "EDGE_ROUTING_OCTILINEAR" };
  private static final Object[] Vb = { "TOP_TO_BOTTOM", "LEFT_TO_RIGHT", "BOTTOM_TO_TOP", "RIGHT_TO_LEFT" };
  private static final Object[] Wb = { "TOP", "CENTER", "BOTTOM" };
  private static final Object[] Xb = { "POLICY_COMPACT", "POLICY_TOPMOST" };
  private static final String[] Yb = { "HIERARCHICAL_OPTIMAL", "HIERARCHICAL_TIGHT_TREE_HEURISTIC", "BFS_LAYERS", "FROM_SKETCH", "HIERARCHICAL_TOPMOST" };
  private static final String[] Zb = { "EDGE_LABELING_NONE", "EDGE_LABELING_GENERIC", "EDGE_LABELING_HIERARCHIC" };
  private static final String[] ac = { "EDGE_LABEL_MODEL_BEST", "EDGE_LABEL_MODEL_AS_IS", "EDGE_LABEL_MODEL_CENTER_SLIDER", "EDGE_LABEL_MODEL_SIDE_SLIDER", "EDGE_LABEL_MODEL_FREE" };
  private static final Object[] bc = { "GLOBAL_LAYERING", "RECURSIVE_LAYERING" };
  private static final Object[] cc = { "GROUP_ALIGN_TOP", "GROUP_ALIGN_CENTER", "GROUP_ALIGN_BOTTOM" };
  private static final Object[] dc = { "GROUP_HORIZONTAL_COMPACTION_NONE", "GROUP_HORIZONTAL_COMPACTION_MAX" };
  public static int ec;
  
  public t()
  {
    super("INCREMENTAL_HIERARCHIC", "yFiles Layout Team", "A sophisticated hierarchic layout algorithm");
    d(true);
  }
  
  public dc j()
  {
    int i = f.p;
    boolean bool = f.o;
    dc localdc = new dc(a());
    localdc.l("GENERAL");
    cc localcc = new cc();
    localcc.a("OptionGroup.title", "INTERACTION");
    localcc.a(localdc.a("SELECTED_ELEMENTS_INCREMENTALLY", false));
    ec localec1 = localcc.a(localdc.a("USE_DRAWING_AS_SKETCH", false));
    localdc.a("ORIENTATION", Vb, 0);
    localdc.a("LAYOUT_COMPONENTS_SEPARATELY", false);
    ec localec2 = localdc.a("SYMMETRIC_PLACEMENT", true);
    localdc.a("MAXIMAL_DURATION", 5);
    localcc = new cc();
    localcc.a("OptionGroup.title", "MINIMUM_DISTANCES");
    localcc.a(localdc.a("NODE_TO_NODE_DISTANCE", 30.0D));
    localcc.a(localdc.a("NODE_TO_EDGE_DISTANCE", 15.0D));
    localcc.a(localdc.a("EDGE_TO_EDGE_DISTANCE", 15.0D));
    localcc.a(localdc.a("MINIMUM_LAYER_DISTANCE", 10.0D));
    localdc.l("EDGE_SETTINGS");
    kc localkc1 = localdc.a("EDGE_ROUTING", Ub, 0);
    localdc.a("BACKLOOP_ROUTING", false);
    localdc.a("AUTOMATIC_EDGE_GROUPING_ENABLED", false);
    localdc.a("MINIMUM_FIRST_SEGMENT_LENGTH", 10.0D);
    localdc.a("MINIMUM_LAST_SEGMENT_LENGTH", 15.0D);
    localdc.a("MINIMUM_EDGE_LENGTH", 20.0D);
    localdc.a("MINIMUM_EDGE_DISTANCE", 15.0D);
    a.h.z localz = new a.h.z(localdc);
    localz.a(localkc1, "EDGE_ROUTING_POLYLINE", localdc.a("MINIMUM_SLOPE", 0.25D, 0.0D, 5.0D, 2));
    localdc.a("PC_OPTIMIZATION_ENABLED", false);
    localz.a(localec2, Boolean.FALSE, localdc.a("EDGE_STRAIGHTENING_OPTIMIZATION_ENABLED", false));
    localdc.l("RANKS");
    localdc.a("RANKING_POLICY", Yb, 0);
    localdc.a("LAYER_ALIGNMENT", Wb, 1);
    localdc.a("COMPONENT_ARRANGEMENT_POLICY", Xb, 1);
    localcc = new cc();
    localcc.a("OptionGroup.title", "FROM_SKETCH_PROPERTIES");
    localcc.a(localdc.a("SCALE", 1.0D, 0.0D, 5.0D, 1));
    localcc.a(localdc.a("HALO", 0.0D));
    localcc.a(localdc.a("MINIMUM_SIZE", 0.0D));
    localdc.j("RANKS", "MINIMUM_SIZE").a(jc.y, new Double(0.0D));
    localcc.a(localdc.a("MAXIMUM_SIZE", 1000.0D));
    localdc.j("RANKS", "MAXIMUM_SIZE").a(jc.y, new Double(0.0D));
    z.t_ localt_ = localz.a("USE_DRAWING_AS_SKETCH", Boolean.FALSE).b(localz.a("SELECTED_ELEMENTS_INCREMENTALLY", Boolean.FALSE));
    localz.a(localt_, localdc.k("RANKING_POLICY"));
    localt_ = localt_.a().a(localz.a("RANKING_POLICY", "FROM_SKETCH"));
    localz.a(localt_, localcc);
    localdc.l("LABELING");
    localcc = new cc();
    localcc.a("OptionGroup.title", "NODE_PROPERTIES");
    localcc.a(localdc.a("CONSIDER_NODE_LABELS", true));
    localcc = new cc();
    localcc.a("OptionGroup.title", "EDGE_PROPERTIES");
    localcc.a(localdc.a("EDGE_LABELING", Zb, 0));
    localz.a(localdc.k("EDGE_LABELING"), "EDGE_LABELING_NONE", localcc.a(localdc.a("EDGE_LABEL_MODEL", ac, 0)), true);
    localdc.l("GROUPING");
    kc localkc2 = localdc.a("GROUP_LAYERING_STRATEGY", bc, 0);
    ec localec3 = localdc.a("GROUP_ENABLE_COMPACTION", true);
    kc localkc3 = localdc.a("GROUP_ALIGNMENT", cc, 0);
    localz.a(localec1, Boolean.FALSE, localkc2);
    localz.a(localkc2, "RECURSIVE_LAYERING", localec3);
    localz.a(localkc2, "RECURSIVE_LAYERING", localkc3);
    localz.a(localz.a(localkc2, "RECURSIVE_LAYERING").b(localz.a(localec3, Boolean.TRUE).a()), localkc3);
    localz.a(localz.a(localkc2, "RECURSIVE_LAYERING").b(localz.a(localec1, Boolean.FALSE)), localec3);
    localdc.a("GROUP_HORIZONTAL_COMPACTION", dc, 1);
    localdc.l("SWIMLANES");
    ec localec4 = localdc.a("TREAT_ROOT_GROUPS_AS_SWIMLANES", false);
    ec localec5 = localdc.a("USE_ORDER_FROM_SKETCH", false);
    ec localec6 = localdc.a("SWIMLANE_SPACING", 0.0D);
    localec6.a(jc.y, new Double(0.0D));
    localz.a(localec4, Boolean.TRUE, localec5);
    localz.a(localec4, Boolean.TRUE, localec6);
    if ((i != 0) || (q.n))
    {
      if (i == 0) {}
      f.o = !bool;
    }
    if (q.o) {
      f.p = ++i;
    }
    return localdc;
  }
  
  public void n()
  {
    int j = f.p;
    boolean bool3 = f.o;
    Object localObject1 = null;
    g localg = e();
    dc localdc = i();
    e locale = new e();
    localObject1 = locale;
    j localj = null;
    boolean bool1 = localdc.g("USE_DRAWING_AS_SKETCH");
    boolean bool2 = localdc.g("SELECTED_ELEMENTS_INCREMENTALLY");
    if (j == 0) {
      if (ke.f(localg)) {
        if (j != 0) {
          break label78;
        }
      }
    }
    label78:
    int i = !ke.e(localg) ? 1 : 0;
    if (j == 0) {
      if (bool2)
      {
        if (j != 0) {
          break label278;
        }
        if (i != 0)
        {
          localj = db.c();
          locale.e((byte)0);
          localObject2 = locale.L();
          localObject3 = localg.R();
          if (((w)localObject3).e())
          {
            localj.a(((w)localObject3).d(), ((ob)localObject2).a(((w)localObject3).d()));
            ((w)localObject3).f();
          }
          while (j != 0)
          {
            if (j != 0) {
              break label353;
            }
            if (bool3) {
              break label342;
            }
            if (!bool3) {
              break;
            }
          }
          localObject3 = localg.S();
          if (((m)localObject3).e())
          {
            localj.a(((m)localObject3).a(), ((ob)localObject2).b(((m)localObject3).a()));
            ((m)localObject3).f();
          }
          for (;;)
          {
            if ((j != 0) || (!bool3))
            {
              if (!bool3) {
                break;
              }
              if (j == 0) {
                localg.a(e.x, localj);
              }
            }
          }
          break label308;
        }
      }
    }
    label278:
    if (j == 0)
    {
      if (bool1)
      {
        if (j != 0) {
          break label305;
        }
        locale.e((byte)0);
      }
    }
    else {
      if (!bool3) {
        break label308;
      }
    }
    label305:
    locale.e((byte)1);
    label308:
    ((uc)locale.P()).g(localdc.g("SYMMETRIC_PLACEMENT"));
    ((uc)locale.P()).c(localdc.g("EDGE_STRAIGHTENING_OPTIMIZATION_ENABLED"));
    label342:
    label353:
    if (j == 0) {
      if ("GROUP_HORIZONTAL_COMPACTION_NONE".equals(localdc.h("GROUP_HORIZONTAL_COMPACTION")))
      {
        ((uc)locale.P()).a(0);
        if (j != 0) {
          break label475;
        }
      }
    }
    if ((bool3) && ("GROUP_HORIZONTAL_COMPACTION_MAX".equals(localdc.h("GROUP_HORIZONTAL_COMPACTION")))) {
      ((uc)locale.P()).a(1);
    }
    locale.e(localdc.g("LAYOUT_COMPONENTS_SEPARATELY"));
    locale.a(localdc.f("MINIMUM_LAYER_DISTANCE"));
    locale.c(localdc.f("NODE_TO_EDGE_DISTANCE"));
    locale.b(localdc.f("NODE_TO_NODE_DISTANCE"));
    locale.d(localdc.f("EDGE_TO_EDGE_DISTANCE"));
    locale.k(localdc.g("AUTOMATIC_EDGE_GROUPING_ENABLED"));
    label475:
    Object localObject2 = locale.W();
    Object localObject3 = locale.U();
    if (j == 0) {
      if (localdc.j("EDGE_ROUTING") == "EDGE_ROUTING_OCTILINEAR")
      {
        ((a.f.d.a.z)localObject3).a(new oc((byte)1));
        if (j != 0) {
          break label687;
        }
        if (!bool3) {
          break label575;
        }
      }
    }
    if (localdc.j("EDGE_ROUTING") == "EDGE_ROUTING_POLYLINE")
    {
      ((a.f.d.a.z)localObject3).a(new oc((byte)2));
      if (j != 0) {
        break label687;
      }
      if (!bool3) {}
    }
    else
    {
      ((a.f.d.a.z)localObject3).a(new oc((byte)0));
    }
    label575:
    ((a.f.d.a.z)localObject3).a(localdc.f("MINIMUM_FIRST_SEGMENT_LENGTH"));
    ((a.f.d.a.z)localObject3).b(localdc.f("MINIMUM_LAST_SEGMENT_LENGTH"));
    ((a.f.d.a.z)localObject3).d(localdc.f("MINIMUM_EDGE_DISTANCE"));
    ((a.f.d.a.z)localObject3).c(localdc.f("MINIMUM_EDGE_LENGTH"));
    ((a.f.d.a.z)localObject3).e(localdc.f("MINIMUM_SLOPE"));
    ((a.f.d.a.z)localObject3).a(localdc.g("PC_OPTIMIZATION_ENABLED"));
    ((a.f.d.a.z)localObject3).b(localdc.g("PC_OPTIMIZATION_ENABLED"));
    ((fc)localObject2).d(Math.min(locale.C(), locale.D()));
    ((fc)localObject2).c(0.0D);
    label687:
    if (j == 0) {
      if (localdc.j("LAYER_ALIGNMENT").equals("TOP"))
      {
        ((fc)localObject2).b(0.0D);
        if ((j == 0) && (!bool3)) {
          break label768;
        }
      }
    }
    if (j == 0) {
      if (localdc.j("LAYER_ALIGNMENT").equals("CENTER")) {
        ((fc)localObject2).b(0.5D);
      }
    }
    if ((j != 0) || ((bool3) && (localdc.j("LAYER_ALIGNMENT").equals("BOTTOM")))) {
      ((fc)localObject2).b(1.0D);
    }
    label768:
    cb localcb = (cb)locale.h();
    if (j == 0) {
      if (localdc.j("ORIENTATION").equals("TOP_TO_BOTTOM"))
      {
        localcb.a((byte)0);
        if ((j == 0) && (!bool3)) {
          break label908;
        }
      }
    }
    if (j == 0) {
      if (localdc.j("ORIENTATION").equals("LEFT_TO_RIGHT"))
      {
        localcb.a((byte)1);
        if ((j == 0) && (!bool3)) {
          break label908;
        }
      }
    }
    if (j == 0) {
      if (localdc.j("ORIENTATION").equals("BOTTOM_TO_TOP"))
      {
        localcb.a((byte)2);
        if (j == 0) {
          if (!bool3) {
            break label908;
          }
        }
      }
      else
      {
        if (j != 0) {
          break label911;
        }
      }
    }
    if (localdc.j("ORIENTATION").equals("RIGHT_TO_LEFT")) {
      localcb.a((byte)3);
    }
    label908:
    label911:
    String str = localdc.h("EDGE_LABELING");
    if (j == 0)
    {
      if (!str.equals("EDGE_LABELING_NONE")) {
        a(str, localdc.h("EDGE_LABEL_MODEL"));
      }
    }
    else
    {
      if (j == 0) {
        if (str.equals("EDGE_LABELING_GENERIC"))
        {
          localObject4 = new a.f.e.c();
          ((a.f.e.c)localObject4).f(false);
          ((a.f.e.c)localObject4).g(true);
          ((a.f.e.c)localObject4).h(true);
          ((a.f.e.c)localObject4).a(new qc());
          locale.a((vc)localObject4);
          if (j != 0) {
            break label1057;
          }
          if (!bool3) {
            break label1051;
          }
        }
      }
      if (j != 0) {
        break label1057;
      }
      if (!str.equals("EDGE_LABELING_HIERARCHIC")) {
        break label1051;
      }
      locale.m(true);
      if (j != 0) {
        break label1057;
      }
      if (!bool3) {
        break label1051;
      }
    }
    locale.m(false);
    label1051:
    label1057:
    if (j == 0)
    {
      if (localdc.g("CONSIDER_NODE_LABELS"))
      {
        locale.n(true);
        if (j != 0) {
          break label1092;
        }
        locale.W().a((byte)2);
      }
    }
    else {
      if (!bool3) {
        break label1096;
      }
    }
    label1092:
    locale.n(false);
    label1096:
    Object localObject4 = localdc.h("RANKING_POLICY");
    if (j == 0) {
      if (((String)localObject4).equals("FROM_SKETCH"))
      {
        locale.d((byte)5);
        if (j != 0) {
          break label1277;
        }
        if (!bool3) {
          break label1266;
        }
      }
    }
    if (j == 0) {
      if (((String)localObject4).equals("HIERARCHICAL_OPTIMAL"))
      {
        locale.d((byte)1);
        if (j != 0) {
          break label1277;
        }
        if (!bool3) {
          break label1266;
        }
      }
    }
    if (j == 0) {
      if (((String)localObject4).equals("HIERARCHICAL_TIGHT_TREE_HEURISTIC"))
      {
        locale.d((byte)2);
        if (j != 0) {
          break label1277;
        }
        if (!bool3) {
          break label1266;
        }
      }
    }
    if (j == 0) {
      if (((String)localObject4).equals("HIERARCHICAL_TOPMOST"))
      {
        locale.d((byte)0);
        if (j != 0) {
          break label1277;
        }
        if (!bool3) {
          break label1266;
        }
      }
    }
    if (j == 0) {
      if (((String)localObject4).equals("BFS_LAYERS"))
      {
        locale.d((byte)4);
        e().a(p.a, ke.c(e()));
      }
    }
    label1266:
    label1277:
    if (j == 0)
    {
      if (localdc.h("COMPONENT_ARRANGEMENT_POLICY").equals("POLICY_COMPACT")) {
        locale.c((byte)0);
      }
    }
    else
    {
      if (j != 0) {
        break label1317;
      }
      if (!bool3) {
        break label1307;
      }
    }
    locale.c((byte)1);
    label1307:
    if (j == 0) {}
    label1317:
    Object localObject5 = locale.S() == 1 ? locale.M() : locale.Q();
    if (j == 0) {
      if ((localObject5 instanceof hc)) {
        localObject5 = ((hc)localObject5).a();
      }
    }
    if (j == 0) {
      if ((localObject5 instanceof n))
      {
        n localn = (n)localObject5;
        localn.d(localdc.f("HALO"));
        localn.a(localdc.f("SCALE"));
        localn.c(localdc.f("MINIMUM_SIZE"));
        localn.b(localdc.f("MAXIMUM_SIZE"));
      }
    }
    if (((j != 0) || (!bool1)) && ((j != 0) || (localdc.h("GROUP_LAYERING_STRATEGY").equals("RECURSIVE_LAYERING"))))
    {
      byte b = 18;
      if (j == 0) {
        if (localdc.h("GROUP_ALIGNMENT").equals("GROUP_ALIGN_CENTER"))
        {
          b = 66;
          if (j != 0) {
            break label1538;
          }
          if (!bool3) {
            break label1512;
          }
        }
      }
      if (j == 0)
      {
        if (localdc.h("GROUP_ALIGNMENT").equals("GROUP_ALIGN_BOTTOM")) {
          b = 34;
        }
        label1512:
        locale.h(localdc.g("GROUP_ENABLE_COMPACTION"));
        locale.b(b);
        locale.i(true);
      }
      label1538:
      if (j != 0) {
        break label1560;
      }
      if (!bool3) {}
    }
    else
    {
      locale.i(false);
    }
    if (localdc.e("SWIMLANES", "TREAT_ROOT_GROUPS_AS_SWIMLANES"))
    {
      label1560:
      a.f.d.a.c localc = new a.f.d.a.c();
      localc.a(localdc.e("SWIMLANES", "USE_ORDER_FROM_SKETCH"));
      localc.a(localdc.d("SWIMLANES", "SWIMLANE_SPACING"));
      locale.b(localc);
    }
    locale.j(localdc.g("BACKLOOP_ROUTING"));
    locale.a(localdc.e("MAXIMAL_DURATION") * 1000);
    try
    {
      a(localObject1);
    }
    finally
    {
      if (j == 0)
      {
        if (localj != null) {
          localg.j(e.x);
        }
      }
      else {
        localj = null;
      }
    }
  }
  
  void a(String paramString1, String paramString2)
  {
    int j = f.p;
    boolean bool = f.o;
    if ((j != 0) || (!paramString1.equals("EDGE_LABELING_NONE")))
    {
      if (j != 0) {
        break label45;
      }
      if (!paramString2.equals("EDGE_LABEL_MODEL_AS_IS")) {}
    }
    else
    {
      return;
    }
    label45:
    if (j == 0) {
      if (paramString2.equals("EDGE_LABEL_MODEL_BEST"))
      {
        if (j == 0) {
          if (paramString1.equals("EDGE_LABELING_GENERIC"))
          {
            paramString2 = "EDGE_LABEL_MODEL_SIDE_SLIDER";
            if (j != 0) {
              break label99;
            }
            if (!bool) {
              break label97;
            }
          }
        }
        if (j != 0) {
          break label99;
        }
        if (paramString1.equals("EDGE_LABELING_HIERARCHIC")) {
          paramString2 = "EDGE_LABEL_MODEL_FREE";
        }
      }
    }
    label97:
    label99:
    byte b1 = 6;
    byte b2 = 32;
    if (j == 0) {
      if (paramString2.equals("EDGE_LABEL_MODEL_CENTER_SLIDER"))
      {
        b1 = 5;
        b2 = 8;
        if ((j == 0) && (!bool)) {
          break label154;
        }
      }
    }
    if (j == 0)
    {
      if (paramString2.equals("EDGE_LABEL_MODEL_FREE")) {
        b1 = 4;
      }
    }
    else {
      b2 = 8;
    }
    label154:
    g localg = e();
    m localm = localg.w();
    label252:
    do
    {
      if (!localm.e()) {
        break;
      }
      d locald = localm.a();
      tb localtb = localg.t(locald);
      int i = 0;
      do
      {
        do
        {
          if (i >= localtb.V()) {
            break label252;
          }
          ig localig = localtb.d(i);
          localig.e(b1);
          if (bool) {
            break;
          }
          if (!paramString2.equals("EDGE_LABEL_MODEL_FREE")) {
            a(localig, b2);
          }
          i++;
        } while (!bool);
        localm.f();
      } while (j != 0);
    } while (!bool);
  }
  
  static void a(ig paramig, byte paramByte)
  {
    fd localfd1 = paramig.b();
    if ((f.p != 0) || (localfd1.b() != paramByte))
    {
      fd localfd2 = new fd(localfd1);
      localfd2.b(paramByte);
      paramig.a(localfd2);
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.g.t

 * JD-Core Version:    0.7.0.1

 */